home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / mid < prev    next >
Text File  |  2001-03-21  |  747b  |  25 lines

  1. Synopsis:
  2.    $mid(<offset> <length> <text>)
  3.  
  4. Technical:
  5.    This function returns the input text, starting at the specified offset,
  6.    and not exceeding the specified length.  If the length specified would
  7.    extend beyond the end of the text, it is adjusted accordingly.  The
  8.    offset is counted from 0 (zero).
  9.  
  10. Practical:
  11.    This function takes an arbitrary input string, and returns a slice of
  12.    it.  This might be used to strip the first few characters off of a
  13.    string, regardless of what they might be.
  14.  
  15. Returns:
  16.    slice of input text, or nothing if error
  17.  
  18. Examples:
  19.    $mid(4 3 hello there)                returns "o t"
  20.    $mid(7 100 this is a long string)    returns " a long string"
  21.  
  22. See Also:
  23.    left(6); right(6)
  24.  
  25.